package com.huateng.controller;

import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.huateng.service.JudicialService;
import com.huateng.vo.ResponseVo;
import org.apache.hadoop.hbase.filter.Filter;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by joy on 2016/11/4.
 */
@RequestMapping("/judicial")
@RestController
public class JudicialQuery {
    @Resource
    private JudicialService judicialService;

    @RequestMapping(value="findcustomerinfo",method = RequestMethod.GET)
    @ResponseBody
    public ResponseVo findCustomerInfo(String id, String startrowkey, int pagesize){

        ResponseVo vo = judicialService.findCustomerInfo( id,  startrowkey, pagesize);
        return vo;
    }

    @RequestMapping(value="findtradeflow",method = RequestMethod.GET)
    @ResponseBody
    public ResponseVo findTradeFlow(String card,String begindate,String enddate,String startrowkey,int pagesize){

        ResponseVo vo = judicialService.findTradeFlow( card, begindate,enddate, startrowkey, pagesize);
        return vo;
    }
}
